package person.bluext.singlegateway.frame.model;

import com.alibaba.fastjson.JSONObject;

/**
 * Description : Request info holder
 *
 * @author : bluext
 */
public class ReqInfo {
    private final JSONObject innerObj = new JSONObject();

    public void put(String key, String value) {
        innerObj.put(key, value);
    }

    public String get() {
        return innerObj.toJSONString();
    }

    public String get(String key) {
        return innerObj.getString(key);
    }

    public void remove(String key) {
        innerObj.remove(key);
    }
}
